package com.he.repository;

import com.he.entity.Product;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

public interface ProductRepository extends ElasticsearchRepository<Product, Long> {
    // 根据名称或副标题搜索
    List<Product> findByNameOrSubtitle(String name, String subtitle);

    // 精确状态查询
    List<Product> findByStatus(String status);
}